<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Danh sách Cán bộ', true), array('action' => 'index'));?></li>
		<li><?php echo $html->link(__('Danh sách Trạm BVTV', true), array('controller' => 'trambvtvs', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm Trạm BVTV', true), array('controller' => 'trambvtvs', 'action' => 'add')); ?> </li>
		<!-- li><?php echo $html->link(__('List P Dt Bds', true), array('controller' => 'p_dt_bds', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New P Dt Bd', true), array('controller' => 'p_dt_bds', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Phieu Dts', true), array('controller' => 'phieu_dts', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Phieu Dt', true), array('controller' => 'phieu_dts', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Thoitiets', true), array('controller' => 'thoitiets', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Thoitiet', true), array('controller' => 'thoitiets', 'action' => 'add')); ?> </li-->
		<li><?php echo $html->link(__('Danh sách Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('Thêm User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="canbos form">
<?php echo $form->create('Canbo');?>
	<fieldset>
 		<legend><?php __('Thêm thông tin CÁN BỘ');?></legend>
	<?php
	        echo $form->hidden('date_sua',array('value'=>date('Y-m-d-h-m-s')));      

	
		$tmp = $form->label(null, 'Chi cục BVTV').$form->select('ChicucBvtv.id',$chicuc_bvtvs,null,array('id'=>'chicuc_bvtvs'));
		echo $html->div('input text', $tmp, null, false);
		
		$tmp = $form->label(null, 'Trạm BVTV'). $form->select('Canbo.trambvtv_id',array(),null,array('id'=>'trambvtvs'),false);
		echo $html->div('input text', $tmp, null, false);
		
	//	echo $form->input('trambvtv_id',array('option'=>$trambvtvs));			
		//echo $form->input('trambvtv_id',array('label'=>'Trạm BVTV'));
		echo $form->input('HOTEN',array('label'=>'Họ tên','type'=>'text'));
		echo $form->input('NGAYSINH',array('label'=>'Ngày sinh','minYear' => date('Y') - 100, 'maxYear' => date('Y') - 18 ));
		echo $form->input('PHAI', array('label'=>'Phái','options' => array(  
					'Nam'=>'Nam',  
					'Nữ'=>'Nữ',  
					)));
					
					
					
		//doan code dung cho ajax			
		$options = array('url'=>'update_select','update'=>'trambvtvs');
		echo $ajax->observeField('chicuc_bvtvs',$options);
		//het doan code dung cho ajax
	/*
	//cach the hien option nam/nu thu 2
		$tmp = $form->label(null,'Phái');
		$tmp = $tmp . $form->select('PHAI',array('nam'=>'Nam','nữ'=>'Nữ'), null, null,false);
		echo $html->div('input text', $tmp);
		
		*/
		//echo $form->input('PHAI',array('label'=>'Phái','options' => array('Nữ','Nam')));
	?>
	</fieldset>
<?php echo $form->end('Lưu');?>
</div>

